(function(){
    var _p = ns('post'),
        __on_post;

    _p.initialize = function() {
        $('#btn-post').click(__on_post);
    };

    function __on_post() {
        var _blog = {
            c:window.blog_post_form.blog.value,
            o:1001
        };
        console.log(JSON.stringify(_blog));
        $.post('blog/action/save/1001', JSON.stringify(_blog), __on_post_success);
    }
    function __on_post_success(_code) {
        $('#msg-line').html(ns('util').format('blog save, code {0}!', _code));
    }
})();
